package request

type RegisterReq struct {
	Name string `form:"name" json:"name" xml:"name"  binding:"required"`
	Pass string `form:"pass" json:"pass" xml:"pass"  binding:"required"`
}

type CreatePlaceReq struct {
	Name    string `form:"name" json:"name" xml:"name"  binding:"required"`
	Address string `form:"address" json:"address" xml:"address"  binding:"required"`
	Open    string `form:"open" json:"open" xml:"open"  binding:"required"`
	Price   int    `form:"price" json:"price" xml:"price"  binding:"required"`
	Num     int    `form:"num" json:"num" xml:"num"  binding:"required"`
}

type SearchReq struct {
	Name string `form:"name" json:"name" xml:"name"  binding:"required"`
}

type AddSearchReq struct {
	Address  string `form:"address" json:"address" xml:"address"  binding:"required"`
	Page     int    `form:"page" json:"page" xml:"page"  binding:"required"`
	PageSize int    `form:"pageSize" json:"pageSize" xml:"pageSize"  binding:"required"`
}

type BuyVoteReq struct {
	UserId    int    `form:"userId" json:"userId" xml:"userId"  binding:"required"`
	PlaceId   int    `form:"placeId" json:"placeId" xml:"placeId"  binding:"required"`
	Times     string `form:"times" json:"times" xml:"times"  binding:"required"`
	Insurance string `form:"insurance" json:"insurance" xml:"insurance"  binding:"required"`
}

type LoginReq struct {
	Name string `form:"name" json:"name" xml:"name"  binding:"required"`
}

type CreateOrderReq struct {
	PlaceId int    `form:"placeId" json:"placeId" xml:"placeId"  binding:"required"`
	Price   int    `form:"price" json:"price" xml:"price"  binding:"required"`
	Times   string `form:"times" json:"times" xml:"times"  binding:"required"`
	Num     int    `form:"num" json:"num" xml:"num"  binding:"required"`
}
